package com.atguigu.classroom.live.service;

import com.alibaba.fastjson.JSONObject;
import com.atguigu.classroom.model.live.LiveCourse;
import com.atguigu.classroom.vo.live.LiveCourseFormVo;
import com.atguigu.classroom.vo.live.LiveCourseVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 直播课程表 服务类
 * </p>
 *
 * @author atguigu
 * @since 2022-07-26
 */
public interface LiveCourseService extends IService<LiveCourse> {

    Page<LiveCourse> selectPage(int page, int limit);

    void saveLiveCourse(LiveCourseFormVo liveCourseFormVo);

    void deleteLiveCourse(Long id);

    LiveCourseFormVo getLiveCourseFormVo(Long id);

    void updateLiveCourseFromVoById(LiveCourseFormVo liveCourseFromVo);

    List<LiveCourseVo> findLatelyList();

    JSONObject getAccessToken(Long id, Long userId);
}
